package com.aegean.MonitorExamSYS.conduction.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.aegean.MonitorExamSYS.conduction.business.ConductionBusiness;
import com.aegean.MonitorExaxSYS.model.SmallType;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ShowSmallListForMonitor")
@Scope("prototype")
public class ShowSmallListForMonitor extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7680934089667093686L;
	@Resource
	ConductionBusiness business;
	private List<SmallType> smalltypes;
	private int total;
	private int start;
	private int limit;
	private int big_Id;
	public List<SmallType> getSmalltypes() {
		return smalltypes;
	}
	public void setSmalltypes(List<SmallType> smalltypes) {
		this.smalltypes = smalltypes;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	
	public int getBig_Id() {
		return big_Id;
	}
	public void setBig_Id(int big_Id) {
		this.big_Id = big_Id;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
	    total=business.smallListCount(big_Id);
	    smalltypes=business.SmallList(start, limit, big_Id);
		return SUCCESS;
	}
}
